<?php

namespace app\langjinmobile\controller;
//导入基类
use think\Controller;
use think\facade\Cache;
use think\Db;
use app\common\model\User as userModel;

class Team extends Controller 
{
    // 一级团队
	public function firsteam(){
		return $this->fetch(); 
    }
     // 我的团队
	public function myteam(){
		$uid = session('userid');
		$uid = request()->param('id',$uid);

		$teams = userModel::where('parent_id',$uid)->select();
		$this->assign('teams',$teams);
		
		return $this->fetch(); 
    }
}